
var app = getApp()
Page({
  data: {
    fPhone: '',
    phone: '',
    password: ''
  },

  // 获取输入账号  
  phoneInput: function (e) {
    this.setData({
      fphone: e.detail.value
    })
  },

  confirm: function() {
    var that = this;
    var fPhone = this.data.fphone
    console.info(fPhone)
    console.info(this.data.fPhone)
    wx.request({
      url: app.appData.contextPath+'bindUserServlet',
      data: {
        phone: app.appData.systemUser.phone,
        fPhone: fPhone
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success: function(res) {

        console.info("绑定成功"+res)
        wx.navigateBack({
  
        })
      },
      fail: function() {
        console.info("绑定失败")
      }
    })    
  }
})  